package net.zjitc.link;

public class DoubleNode<T> {
    DoubleNode next;

    T date;
    DoubleNode prev;

    public DoubleNode(T date) {
        this.date = date;
    }

    public DoubleNode(DoubleNode next, T date) {
        this.next = next;
        this.date = date;
    }

    public DoubleNode(T date, DoubleNode prev) {
        this.date = date;
        this.prev = prev;
    }

    public DoubleNode(DoubleNode next, T date, DoubleNode prev) {
        this.next = next;
        this.date = date;
        this.prev = prev;
    }
}
